package com.xiaoyao.myframeapp.utils.double_length;

import java.text.DecimalFormat;

/**
 * @Author xiaoyao
 * @Email xiao80206040@qq.com
 * @Explain TODO 返回几位小数
 * @Created by Administrator on 2017/8/12 0012 10:48
 */
public class DoubleLengthUtils {


    public static double Length_2(double d) {
        return Double.valueOf(new DecimalFormat("#.00").format(d));
    }
}
